<include file='Base:header' />
	<body>
		<div class="submit">
			<h1 class="title">
				<a class="back" href="javascript:history.back(-1)">
					<img class="fl" src="__IMG__/back.png" style="margin-left: 5%;"/>
				</a>
				模拟打卡
				<a class="home" href="__APP__">
					<img class="fl" src="__IMG__/home_logo.png" style="margin-right: 5%;"/>
				</a>
			</h1>
			<include file='Base:_userinfo' />
		    <form action="{:U('')}" method='post' class='ajax-form'>
		        <div class="weui-cells weui-cells_form">
		            <div class="weui-cell">
		                <div class="weui-cell__hd"><label class="weui-label">打卡时间</label></div>
						<div class="weui-cell__bd">
							<input class="weui-input" id="starttime" type="text" placeholder="请选择" name='time' value="{:date('Y-m-d 09:00')}">
						</div>
		            </div>
		            <div class="weui-cell">
		                <div class="weui-cell__hd"><label class="weui-label">打卡地点</label></div>
						<div class="weui-cell__bd">
							<input type="text" id='devocode' class='weui-input' value='fzzx' name='dev_code' />
						</div>
		            </div>
		            
		        </div>
		      	<div class="sumbit_btn">
					<input type="button" class="weui-btn weui-btn_mini weui-btn_primary ajax-submit" style="margin: 0 auto;" value="提交">
				</div>
		    </form>
		</div>

		<include file='Base:footer' />
		<script type="text/javascript">
		$("#devocode").picker({
			  title: "设备code",
			  cols: [
			    {
			      textAlign: 'center',
			      values: ['fzzx', 'cmms']
			    }
			  ]
			});
		
		
			$("#ajax").click(function(){
				$.ajax({
					type:"post",
					url:"{:U('')}",
					data:{"time":"2017-06-10"}
				});
			})
			$("#starttime").datetimePicker({
				yearSplit: "-",
				monthSplit: "-",
				dateSplit: "",
				minutes:'00'
			});
		</script>
	</body>

</html>